import Mock from 'mockjs'
// var Mock = require('mockjs')
const data = Mock.mock({
  // 'data|10-30': [{
  //   "id|+1": 0,
  //   "desc|1": ['费德勒·欧德聚：中西餐厅', 'EMD游戏厅', "香奈儿CHANEL", "主题专网"],
  //   "title|1": ["美食订单", "游玩订单", '购物订单', '咖助理'],
  //   "age|18-28": 26,
  //   "time": "9:30至11:30",
  //   "img|1": [
  //     'https://img1.baidu.com/it/u=1556861087,4121278391&fm=253&fmt=auto&app=138&f=JPEG?w=805&h=500',
  //     'https://img1.baidu.com/it/u=9717024,773526230&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=750',
  //     'https://img2.baidu.com/it/u=2823486774,58603981&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
  //     'https://img1.baidu.com/it/u=3672239082,768326781&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1686848400&t=fcc81d7114ccc711dee7f515be36546e'

  //   ]
  // }]
  //==================改改改=========================
  'data': [
    {
      "id": 5,
      "kind": 3,
      "dian": false,
      "price": 888,
      "orderTime": "2020/12/30",
      "status": '待支付',
      "method|1": "线下就餐",
      // "desc|1": ['费德勒·欧德聚：中西餐厅','EMD游戏厅',"香奈儿CHANEL","主题专网"],
      "desc": "香奈儿CHANEL",
      // "title|1":["美食订单","游玩订单",'购物订单','咖助理'],
      "title": '购物订单',
      "age|18-28": 26,
      "time": "9:30至11:30",
      "num": 1,
      "pay": 0,
      "img":
        'https://www.chanel.com/us/img/t_one/q_auto:good,fl_lossy,dpr_1.2,f_auto/w_2400/prd-emea/sys-master/content/P1/h49/h09/10196620967966-FSH-1679922543797-homepagecorpoonedesktop.jpg',
    },
    {
      "id": 0,
      "kind": 1,
      "dian": false,
      "price": 888,
      "orderTime": "2020/12/30",
      "status": '待支付',
      "method": '线下',
      // "desc|1": ['费德勒·欧德聚：中西餐厅','EMD游戏厅',"香奈儿CHANEL","主题专网"],
      "desc": '费德勒·欧德聚：中西餐厅',
      // "title|1":["美食订单","游玩订单",'购物订单','咖助理'],
      "title": '美食订单',
      "age|18-28": 26,
      "time": "9:30至11:30",
      "num": 1,
      "pay": 0,
      "img":
        'https://img1.baidu.com/it/u=3672239082,768326781&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1686848400&t=fcc81d7114ccc711dee7f515be36546e',
    },
    {
      "id": 3,
      "kind": 4,
      "dian": false,
      "price": 666,
      "orderTime": "2020/12/30",
      "status": '待支付',
      "method|1": ["移动端送餐", "线下就餐"],
      // "desc|1": ['费德勒·欧德聚：中西餐厅','EMD游戏厅',"香奈儿CHANEL","主题专网"],
      "desc": "主题专网",
      // "title|1":["美食订单","游玩订单",'购物订单','咖助理'],
      "title": '咖助理',
      "age|18-28": 26,
      "time": "9:30至11:30",
      "num": 1,
      "pay": 0,
      "img":
        'https://img0.baidu.com/it/u=934665634,3968708676&fm=253&fmt=auto&app=138&f=JPEG?w=688&h=500',
    },

    {
      "id": 1,
      "kind": 2,
      "dian": false,
      "price": 1010,
      "orderTime": "2020/12/30",
      "status": '待支付',
      "method|1": ["移动端送餐", "线下就餐"],
      // "desc|1": ['费德勒·欧德聚：中西餐厅','EMD游戏厅',"香奈儿CHANEL","主题专网"],
      "desc": 'EMD游戏厅',
      // "title|1":["美食订单","游玩订单",'购物订单','咖助理'],
      "title": "游玩订单",
      "age|18-28": 26,
      "time": "9:30至11:30",
      "num": 1,
      "pay": 0,
      "img":
        'https://img2.baidu.com/it/u=2823486774,58603981&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
    },
    {
      "id": 2,
      "kind": 3,
      "dian": false,
      "price": 8888,
      "orderTime": "2020/12/30",
      "status": '待支付',
      "method|1": ["移动端送餐", "线下就餐"],
      // "desc|1": ['费德勒·欧德聚：中西餐厅','EMD游戏厅',"香奈儿CHANEL","主题专网"],
      "desc": "香奈儿CHANEL",
      // "title|1":["美食订单","游玩订单",'购物订单','咖助理'],
      "title": '购物订单',
      "age|18-28": 26,
      "time": "9:30至11:30",
      "num": 1,
      "pay": 0,
      "img":
        'https://img0.baidu.com/it/u=2258643370,2310113071&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1686934800&t=86d98d8d11ff3d135d09495cbd3a99ee',
    },


  ]

})


Mock.mock('/getactivitylist', 'get', () => {
  // console.log('我写的假数据',data);
  return data
})

const data1 = Mock.mock({
  //   'data|10-30':[{"id|+1":0,
  //   "desc|1": ['费德勒·欧德聚：中西餐厅','EMD游戏厅',"香奈儿CHANEL","主题专网"],
  //   "title|1":["美食订单","游玩订单",'购物订单','咖助理'],
  //   "age|18-28":26,
  //    "time": "9:30至11:30",
  //    "img|1": [
  //     'https://img2.baidu.com/it/u=2823486774,58603981&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
  //     'https://img1.baidu.com/it/u=3672239082,768326781&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1686848400&t=fcc81d7114ccc711dee7f515be36546e',
  //      'https://img1.baidu.com/it/u=1556861087,4121278391&fm=253&fmt=auto&app=138&f=JPEG?w=805&h=500',
  //      'https://img1.baidu.com/it/u=9717024,773526230&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=750',


  //    ]
  //  }]
  //改改改================================
  'data': [
    {
      "id": 1,
      "kind": 2,
      "dian": false,
      "price": 888,
      "orderTime": "2020/12/30",
      "status": '待支付',
      "method|1": ["移动端送餐", "线下就餐"],
      // "desc|1": ['费德勒·欧德聚：中西餐厅','EMD游戏厅',"香奈儿CHANEL","主题专网"],
      "desc": 'EMD游戏厅',
      // "title|1":["美食订单","游玩订单",'购物订单','咖助理'],
      "title": "游玩订单",
      "age|18-28": 26,
      "time": "9:30至11:30",
      "num": 1,
      "pay": 0,
      "img":
        'https://img2.baidu.com/it/u=2823486774,58603981&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
    },
    {
      "id": 0,
      "kind": 1,
      "dian": false,
      "price": 2305,
      "orderTime": "2020/12/30",
      "status": '待支付',
      "method|1": ["移动端送餐", "线下就餐"],
      // "desc|1": ['费德勒·欧德聚：中西餐厅','EMD游戏厅',"香奈儿CHANEL","主题专网"],
      "desc": '费德勒·欧德聚：中西餐厅',
      // "title|1":["美食订单","游玩订单",'购物订单','咖助理'],
      "title": '美食订单',
      "age|18-28": 26,
      "time": "9:30至11:30",
      "num": 1,
      "pay": 0,
      "img":
        'https://img1.baidu.com/it/u=3672239082,768326781&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1686848400&t=fcc81d7114ccc711dee7f515be36546e',
    },
    {
      "id": 2,
      "kind": 3,
      "dian": false,
      "price": 666,
      "orderTime": "2020/12/30",
      "status": '待支付',
      "method|1": ["移动端送餐", "线下就餐"],
      // "desc|1": ['费德勒·欧德聚：中西餐厅','EMD游戏厅',"香奈儿CHANEL","主题专网"],
      "desc": "香奈儿CHANEL",
      // "title|1":["美食订单","游玩订单",'购物订单','咖助理'],
      "title": '购物订单',
      "age|18-28": 26,
      "time": "9:30至11:30",
      "num": 1,
      "pay": 0,
      "img":
        'https://img0.baidu.com/it/u=2258643370,2310113071&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1686934800&t=86d98d8d11ff3d135d09495cbd3a99ee',
    },
    {
      "id": 3,
      "kind": 4,
      "dian": false,
      "price": 2333,
      "orderTime": "2020/12/30",
      "status": '待支付',
      "method|1": ["移动端送餐", "线下就餐"],
      // "desc|1": ['费德勒·欧德聚：中西餐厅','EMD游戏厅',"香奈儿CHANEL","主题专网"],
      "desc": "主题专网",
      // "title|1":["美食订单","游玩订单",'购物订单','咖助理'],
      "title": '咖助理',
      "age|18-28": 26,
      "time": "9:30至11:30",
      "num": 1,
      "pay": 0,
      "img":
        'https://img0.baidu.com/it/u=934665634,3968708676&fm=253&fmt=auto&app=138&f=JPEG?w=688&h=500',
    },
  ]



})
Mock.mock('/getactivitylist1', 'get', () => {
  // console.log('我写的假数据',data);
  return data1
})

////////////////////////
//美食 1   游玩 2 购物 3  咖助理 4
//所有订单
// const data2 = Mock.mock({
//   "data": [{
//     "id": 0,
//     "kind": '1',
//     "title": "美食订单",
//     "name": '费德勒·欧德聚：中西餐厅',
//     "time": '07:30 - 09:30开放',
//     "num": '8',
//     "price": "888",
//     "pay": 0,
//     "orderTime": "2020/12/30",
//     "status": "待支付",
//     "img": 'https://img1.baidu.com/it/u=3672239082,768326781&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1686848400&t=fcc81d7114ccc711dee7f515be36546e',
//     "method|1": ["移动端送餐", "线下就餐"]
//   }, {
//     "id": 1,
//     "kind": '2',
//     "pay": 1,
//     "img": 'https://img2.baidu.com/it/u=2823486774,58603981&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
//     "title": "游玩订单",
//     "name": 'EMD游戏厅',
//     "palace": '游玩地点：娱乐区 W73',
//     "num": '200',
//     "price": "600",
//     "orderTime": "2020/12/30",
//     "status": "已完成",
//   },
//   {
//     "id": 2,
//     "kind": '3',
//     "img": 'https://img1.baidu.com/it/u=9717024,773526230&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=750',
//     "title": '购物订单',
//     "pay": 1,
//     "name": "香奈儿CHANEL",
//     "palace": '购物地点：休闲区 P16',
//     "num": '3',
//     "price": "6800",
//     "orderTime": "2020/12/30",
//     "status": "已完成",
//   },
//   {
//     "id": 3,
//     "kind": '4',
//     "img": 'https://img1.baidu.com/it/u=1556861087,4121278391&fm=253&fmt=auto&app=138&f=JPEG?w=805&h=500',
//     "title": '咖助理',
//     "name": "主题专网",
//     "pay": 1,
//     "palace": '开通套餐 ：流量包 20000MB',
//     "num": '1',
//     "price": "2305",
//     "orderTime": "2023/6/14",
//     "status": "已完成",
//   },
//   ]
// })
// Mock.mock('/getlistall', 'get', () => {
//   // console.log('我写的假数据', data);
//   return data2
// })

//

